<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>资源列表 - 1024导航</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .filter-active {
                @apply bg-primary text-white;
            }
            .text-gradient {
                @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="text-primary text-2xl font-bold">1024<span class="text-secondary">导航</span></div>
                <span class="hidden md:inline-block text-sm text-gray-500 bg-gray-100 px-2 py-1 rounded">v2.3</span>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="index.html" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="#" class="text-primary font-medium">资源</a>
                <a href="tools.html" class="text-gray-600 hover:text-primary transition-colors">工具</a>
                <a href="community.html" class="text-gray-600 hover:text-primary transition-colors">社区</a>
                <a href="about.html" class="text-gray-600 hover:text-primary transition-colors">关于</a>
            </nav>

            <div class="flex items-center space-x-3">
                <button
                    class="hidden md:block px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                    <i class="fa fa-user-plus mr-1"></i> 登录
                </button>
                <button class="md:hidden text-gray-600 text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 页面标题 -->
    <section class="py-10 bg-gradient-to-b from-white to-gray-50 border-b border-gray-100">
        <div class="container mx-auto px-4">
            <div class="max-w-3xl mx-auto text-center">
                <h1 class="text-[clamp(1.8rem,5vw,2.5rem)] font-bold mb-4 text-gradient">优质资源列表</h1>
                <p class="text-gray-600">精选互联网各类优质资源，助力高效学习与工作</p>
            </div>
        </div>
    </section>

    <!-- 资源筛选与搜索 -->
    <section class="py-6 bg-white border-b border-gray-100">
        <div class="container mx-auto px-4">
            <div class="max-w-6xl mx-auto">
                <!-- 搜索框 -->
                <div class="relative mb-6">
                    <input type="text" placeholder="搜索资源、工具或教程..."
                        class="w-full px-5 py-3 rounded-lg shadow-sm border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all">
                    <button
                        class="absolute right-2 top-2 bottom-2 px-4 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                        <i class="fa fa-search"></i>
                    </button>
                </div>

                <!-- 分类筛选 -->
                <div class="flex overflow-x-auto pb-2 scrollbar-hide gap-2 mb-2">
                    <button class="whitespace-nowrap px-4 py-2 rounded-full filter-active transition-colors">
                        全部资源
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-code mr-1"></i> 开发工具
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-paint-brush mr-1"></i> 设计资源
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-graduation-cap mr-1"></i> 学习教育
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-film mr-1"></i> 影音娱乐
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-shopping-cart mr-1"></i> 电商购物
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-image mr-1"></i> 图片素材
                    </button>
                    <button
                        class="whitespace-nowrap px-4 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                        <i class="fa fa-file-text mr-1"></i> 文档资料
                    </button>
                </div>

                <!-- 排序选项 -->
                <div class="flex justify-between items-center">
                    <div class="text-sm text-gray-500">找到 <span class="text-primary font-medium">128</span> 个资源</div>
                    <div class="flex items-center space-x-3">
                        <span class="text-sm text-gray-500">排序方式:</span>
                        <select
                            class="text-sm border border-gray-200 rounded-md px-2 py-1 focus:outline-none focus:ring-1 focus:ring-primary">
                            <option>最新收录</option>
                            <option>最热资源</option>
                            <option>名称排序</option>
                            <option>评分最高</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 资源列表内容 -->
    <section class="py-8">
        <div class="container mx-auto px-4">
            <div class="max-w-6xl mx-auto">
                <!-- 资源卡片网格 -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-10">
                    <!-- 资源卡片1 -->
                    <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="h-40 bg-gray-100 relative">
                            <img src="https://picsum.photos/id/0/600/400" alt="在线代码编辑器"
                                class="w-full h-full object-cover">
                            <div class="absolute top-3 left-3">
                                <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">开发工具</span>
                            </div>
                            <button
                                class="absolute top-3 right-3 w-8 h-8 rounded-full bg-white/80 backdrop-blur-sm flex items-center justify-center text-gray-600 hover:text-primary transition-colors">
                                <i class="fa fa-bookmark-o"></i>
                            </button>
                        </div>
                        <div class="p-5">
                            <div class="flex items-center mb-3">
                                <div class="flex items-center text-amber-500 text-xs mr-3">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                    <span class="text-gray-500 ml-1">4.5</span>
                                </div>
                                <span class="text-xs text-gray-500"><i class="fa fa-eye mr-1"></i> 12.5k</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">在线代码编辑器</h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">无需安装，在线编写和运行多种编程语言代码，支持实时预览和分享功能。</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-500">更新于 2023-10-28</span>
                                <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                        class="fa fa-external-link ml-1"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- 资源卡片2 -->
                    <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="h-40 bg-gray-100 relative">
                            <img src="https://picsum.photos/id/180/600/400" alt="免费UI设计模板"
                                class="w-full h-full object-cover">
                            <div class="absolute top-3 left-3">
                                <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">设计资源</span>
                            </div>
                            <button
                                class="absolute top-3 right-3 w-8 h-8 rounded-full bg-white/80 backdrop-blur-sm flex items-center justify-center text-gray-600 hover:text-primary transition-colors">
                                <i class="fa fa-bookmark-o"></i>
                            </button>
                        </div>
                        <div class="p-5">
                            <div class="flex items-center mb-3">
                                <div class="flex items-center text-amber-500 text-xs mr-3">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-o"></i>
                                    <span class="text-gray-500 ml-1">4.0</span>
                                </div>
                                <span class="text-xs text-gray-500"><i class="fa fa-eye mr-1"></i> 8.3k</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">免费UI设计模板</h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">精选高质量UI设计模板，可直接下载使用，支持Figma和Sketch格式。</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-500">更新于 2023-10-25</span>
                                <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                        class="fa fa-external-link ml-1"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- 资源卡片3 -->
                    <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="h-40 bg-gray-100 relative">
                            <img src="https://picsum.photos/id/48/600/400" alt="编程学习路径"
                                class="w-full h-full object-cover">
                            <div class="absolute top-3 left-3">
                                <span class="text-xs bg-amber-100 text-amber-800 px-2 py-1 rounded-full">学习教育</span>
                            </div>
                            <button
                                class="absolute top-3 right-3 w-8 h-8 rounded-full bg-white/80 backdrop-blur-sm flex items-center justify-center text-gray-600 hover:text-primary transition-colors">
                                <i class="fa fa-bookmark-o"></i>
                            </button>
                        </div>
                        <div class="p-5">
                            <div class="flex items-center mb-3">
                                <div class="flex items-center text-amber-500 text-xs mr-3">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <span class="text-gray-500 ml-1">5.0</span>
                                </div>
                                <span class="text-xs text-gray-500"><i class="fa fa-eye mr-1"></i> 15.7k</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">编程学习路径</h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">从入门到精通的完整编程学习路径，包含视频教程和实战项目。</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-500">更新于 2023-10-20</span>
                                <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                        class="fa fa-external-link ml-1"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- 资源卡片4 -->
                    <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="h-40 bg-gray-100 relative">
                            <img src="https://picsum.photos/id/96/600/400" alt="高清影视资源"
                                class="w-full h-full object-cover">
                            <div class="absolute top-3 left-3">
                                <span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">影音娱乐</span>
                            </div>
                            <button
                                class="absolute top-3 right-3 w-8 h-8 rounded-full bg-white/80 backdrop-blur-sm flex items-center justify-center text-gray-600 hover:text-primary transition-colors">
                                <i class="fa fa-bookmark-o"></i>
                            </button>
                        </div>
                        <div class="p-5">
                            <div class="flex items-center mb-3">
                                <div class="flex items-center text-amber-500 text-xs mr-3">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                    <i class="fa fa-star-o"></i>
                                    <span class="text-gray-500 ml-1">3.5</span>
                                </div>
                                <span class="text-xs text-gray-500"><i class="fa fa-eye mr-1"></i> 23.1k</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">高清影视资源</h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">免费观看高清电影和电视剧，无广告干扰，更新及时。</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-500">更新于 2023-10-18</span>
                                <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                        class="fa fa-external-link ml-1"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- 资源卡片5 -->
                    <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="h-40 bg-gray-100 relative">
                            <img src="https://picsum.photos/id/26/600/400" alt="优惠券聚合平台"
                                class="w-full h-full object-cover">
                            <div class="absolute top-3 left-3">
                                <span class="text-xs bg-rose-100 text-rose-800 px-2 py-1 rounded-full">电商购物</span>
                            </div>
                            <button
                                class="absolute top-3 right-3 w-8 h-8 rounded-full bg-white/80 backdrop-blur-sm flex items-center justify-center text-gray-600 hover:text-primary transition-colors">
                                <i class="fa fa-bookmark-o"></i>
                            </button>
                        </div>
                        <div class="p-5">
                            <div class="flex items-center mb-3">
                                <div class="flex items-center text-amber-500 text-xs mr-3">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-o"></i>
                                    <span class="text-gray-500 ml-1">4.0</span>
                                </div>
                                <span class="text-xs text-gray-500"><i class="fa fa-eye mr-1"></i> 18.9k</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">优惠券聚合平台</h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">收集全网电商平台优惠券和折扣信息，省钱购物好帮手。</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-500">更新于 2023-10-15</span>
                                <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                        class="fa fa-external-link ml-1"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- 资源卡片6 -->
                    <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="h-40 bg-gray-100 relative">
                            <img src="https://picsum.photos/id/42/600/400" alt="无版权图库"
                                class="w-full h-full object-cover">
                            <div class="absolute top-3 left-3">
                                <span class="text-xs bg-teal-100 text-teal-800 px-2 py-1 rounded-full">图片素材</span>
                            </div>
                            <button
                                class="absolute top-3 right-3 w-8 h-8 rounded-full bg-white/80 backdrop-blur-sm flex items-center justify-center text-gray-600 hover:text-primary transition-colors">
                                <i class="fa fa-bookmark-o"></i>
                            </button>
                        </div>
                        <div class="p-5">
                            <div class="flex items-center mb-3">
                                <div class="flex items-center text-amber-500 text-xs mr-3">
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star"></i>
                                    <i class="fa fa-star-half-o"></i>
                                    <span class="text-gray-500 ml-1">4.5</span>
                                </div>
                                <span class="text-xs text-gray-500"><i class="fa fa-eye mr-1"></i> 14.2k</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">无版权图库</h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">提供海量免费无版权图片，可用于商业用途，支持一键下载。</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-500">更新于 2023-10-12</span>
                                <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                        class="fa fa-external-link ml-1"></i></a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 加载更多和分页 -->
                <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
                    <button
                        class="px-6 py-2.5 border border-primary text-primary rounded-md hover:bg-primary/5 transition-colors">
                        <i class="fa fa-refresh mr-1"></i> 加载更多
                    </button>

                    <div class="flex items-center space-x-1">
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 text-gray-500 hover:border-primary hover:text-primary transition-colors">
                            <i class="fa fa-angle-left"></i>
                        </button>
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md bg-primary text-white">1</button>
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary transition-colors">2</button>
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary transition-colors">3</button>
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary transition-colors">4</button>
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary transition-colors">5</button>
                        <button
                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 text-gray-500 hover:border-primary hover:text-primary transition-colors">
                            <i class="fa fa-angle-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 资源提交推荐 -->
    <section class="py-10 bg-blue-50">
        <div class="container mx-auto px-4">
            <div class="max-w-4xl mx-auto text-center">
                <h2 class="text-xl font-bold mb-4">发现了优质资源？</h2>
                <p class="text-gray-600 mb-6">如果您知道任何优质资源希望分享给更多人，请推荐给我们</p>
                <a href="#"
                    class="inline-flex items-center px-6 py-3 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                    <i class="fa fa-plus-circle mr-2"></i> 提交资源
                </a>
            </div>
        </div>
    </section>

    <!-- 底部区域 -->
    <footer class="bg-gray-800 text-gray-300 py-10 mt-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-semibold mb-4">1024导航</h3>
                    <p class="text-sm text-gray-400 mb-4">精选互联网优质资源，打造高效便捷的导航平台，助力你的工作与学习。</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源分类</a></li>
                        <li><a href="tools.html" class="text-gray-400 hover:text-white transition-colors">实用工具</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">最新收录</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">帮助支持</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源提交</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">举报不良信息</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">关于我们</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="about.html" class="text-gray-400 hover:text-white transition-colors">网站介绍</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用条款</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">免责声明</a></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-sm text-gray-500">
                <p>© 2023 1024导航 - 精选互联网优质资源</p>
            </div>
        </div>
    </footer>

    <script>
        // 筛选按钮交互
        document.querySelectorAll('.filter-active, .bg-gray-100.rounded-full').forEach(button => {
            button.addEventListener('click', () => {
                // 移除所有按钮的活跃状态
                document.querySelectorAll('.filter-active').forEach(btn => {
                    btn.classList.remove('filter-active');
                    btn.classList.add('bg-gray-100', 'text-gray-700', 'hover:bg-gray-200');
                });

                // 为当前点击的按钮添加活跃状态
                button.classList.add('filter-active');
                button.classList.remove('bg-gray-100', 'text-gray-700', 'hover:bg-gray-200');
            });
        });

        // 收藏按钮交互
        document.querySelectorAll('.fa-bookmark-o').forEach(icon => {
            icon.addEventListener('click', (e) => {
                e.preventDefault();
                e.stopPropagation();

                if (icon.classList.contains('fa-bookmark-o')) {
                    icon.classList.remove('fa-bookmark-o');
                    icon.classList.add('fa-bookmark', 'text-primary');
                } else {
                    icon.classList.remove('fa-bookmark', 'text-primary');
                    icon.classList.add('fa-bookmark-o');
                }
            });
        });

        // 滚动时导航栏效果
        window.addEventListener('scroll', () => {
            const header = document.querySelector('header');
            if (window.scrollY > 10) {
                header.classList.add('shadow');
            } else {
                header.classList.remove('shadow');
            }
        });
    </script>
</body>

</html>